pub struct Line { /* private fields */ }
Expand description
A reference to a Device
that allows us to link with it.
Implementations§
Source§impl Line
impl Line
Sourcepub fn send(self, message: Message) -> Result<(), Message>
pub fn send(self, message: Message) -> Result<(), Message>
Send a message to the Device. Returns the original message on failure (if the Device has disconnected).
Sourcepub fn link_line(&self, other: Line, mode: LinkMode) -> Result<(), LinkError>
pub fn link_line(&self, other: Line, mode: LinkMode) -> Result<(), LinkError>
Links with a Device through its Line. Panics if you try to link to yourself.
Sourcepub fn unlink_line(&self, other: &Line, mode: LinkMode)
pub fn unlink_line(&self, other: &Line, mode: LinkMode)
Links with another Line.
Trait Implementations§
impl Eq for Line
impl Unpin for Line
Auto Trait Implementations§
impl Freeze for Line
impl !RefUnwindSafe for Line
impl Send for Line
impl Sync for Line
impl !UnwindSafe for Line
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