pub enum ServiceToken {
Single(TransportService),
Range {
protocol: Layer4Protocol,
start: u16,
end: u16,
},
}Expand description
Parsed token within a service definition list.
Variants§
Implementations§
Source§impl ServiceToken
impl ServiceToken
Sourcepub fn expand(&self) -> Vec<TransportService>
pub fn expand(&self) -> Vec<TransportService>
Expand a range token into individual transport services.
Trait Implementations§
Source§impl Clone for ServiceToken
impl Clone for ServiceToken
Source§fn clone(&self) -> ServiceToken
fn clone(&self) -> ServiceToken
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 moreSource§impl Debug for ServiceToken
impl Debug for ServiceToken
Source§impl PartialEq for ServiceToken
impl PartialEq for ServiceToken
impl Eq for ServiceToken
impl StructuralPartialEq for ServiceToken
Auto Trait Implementations§
impl Freeze for ServiceToken
impl RefUnwindSafe for ServiceToken
impl Send for ServiceToken
impl Sync for ServiceToken
impl Unpin for ServiceToken
impl UnwindSafe for ServiceToken
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