pub struct SmaSession { /* private fields */ }Expand description
SMA client session instance that holds the network dependent state for communication with a single unicast device, or a group of multicast devices.
Implementations§
Source§impl SmaSession
impl SmaSession
Sourcepub fn open_unicast(remote_addr: Ipv4Addr) -> Result<Self, ClientError>
pub fn open_unicast(remote_addr: Ipv4Addr) -> Result<Self, ClientError>
Opens a unicast network socket for communication with a single SMA device identified by a IP address.
Sourcepub fn open_multicast(local_addr: Ipv4Addr) -> Result<Self, ClientError>
pub fn open_multicast(local_addr: Ipv4Addr) -> Result<Self, ClientError>
Opens a multicast network socket on the given local IPv4 address for communication with a group of SMA devices.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for SmaSession
impl RefUnwindSafe for SmaSession
impl Send for SmaSession
impl Sync for SmaSession
impl Unpin for SmaSession
impl UnwindSafe for SmaSession
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