pub struct DStarGatewayConfig {
pub callsign: String,
pub suffix: String,
pub baud: TncBaud,
pub max_last_heard: usize,
}Expand description
Configuration for a DStarGateway session.
Created with DStarGatewayConfig::new which provides sensible
defaults for a D-STAR gateway station. All fields are public for
customisation before passing to DStarGateway::start.
Fields§
§callsign: StringMy callsign (up to 8 characters, space-padded internally).
suffix: StringMy suffix (up to 4 characters, space-padded internally). Default: four spaces.
baud: TncBaudTNC baud rate for MMDVM mode. Default: 9600 bps (GMSK, the standard D-STAR data rate).
max_last_heard: usizeMaximum last-heard entries to keep. Oldest entries are evicted when this limit is reached. Default: 100.
Implementations§
Trait Implementations§
Source§impl Clone for DStarGatewayConfig
impl Clone for DStarGatewayConfig
Source§fn clone(&self) -> DStarGatewayConfig
fn clone(&self) -> DStarGatewayConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DStarGatewayConfig
impl RefUnwindSafe for DStarGatewayConfig
impl Send for DStarGatewayConfig
impl Sync for DStarGatewayConfig
impl Unpin for DStarGatewayConfig
impl UnwindSafe for DStarGatewayConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more