pub struct DialStringTarget { /* private fields */ }Expand description
Where a dial string is headed: the command carrying it and the block-parser revision of the switch reading it.
Implementations§
Source§impl DialStringTarget
impl DialStringTarget
Sourcepub fn new(carrier: DialStringCarrier) -> Self
pub fn new(carrier: DialStringCarrier) -> Self
Target carrier at the default BlockParse.
Sourcepub fn with_block_parse(self, block_parse: BlockParse) -> Self
pub fn with_block_parse(self, block_parse: BlockParse) -> Self
Target a switch running block_parse.
Sourcepub fn carrier(&self) -> DialStringCarrier
pub fn carrier(&self) -> DialStringCarrier
The command carrying the dial string.
Sourcepub fn block_parse(&self) -> BlockParse
pub fn block_parse(&self) -> BlockParse
The block-parser revision rendered for.
Trait Implementations§
Source§impl Clone for DialStringTarget
impl Clone for DialStringTarget
Source§fn clone(&self) -> DialStringTarget
fn clone(&self) -> DialStringTarget
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DialStringTarget
Source§impl Debug for DialStringTarget
impl Debug for DialStringTarget
impl Eq for DialStringTarget
Source§impl From<DialStringCarrier> for DialStringTarget
impl From<DialStringCarrier> for DialStringTarget
Source§fn from(carrier: DialStringCarrier) -> Self
fn from(carrier: DialStringCarrier) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DialStringTarget
impl PartialEq for DialStringTarget
impl StructuralPartialEq for DialStringTarget
Auto Trait Implementations§
impl Freeze for DialStringTarget
impl RefUnwindSafe for DialStringTarget
impl Send for DialStringTarget
impl Sync for DialStringTarget
impl Unpin for DialStringTarget
impl UnsafeUnpin for DialStringTarget
impl UnwindSafe for DialStringTarget
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.