pub struct NetworkInterface<S, P>where
S: Clone,{ /* private fields */ }
Expand description
This endpoint implements the NetworkInterface component.
It can be mounted on the following components:
Implementations§
Source§impl<S, P> NetworkInterface<S, P>where
S: AsRef<dyn AuthenticateRequest> + Clone + Send + Sync + 'static,
P: OperationPrivilegeMapping + 'static,
<P as OperationPrivilegeMapping>::Get: Send,
impl<S, P> NetworkInterface<S, P>where
S: AsRef<dyn AuthenticateRequest> + Clone + Send + Sync + 'static,
P: OperationPrivilegeMapping + 'static,
<P as OperationPrivilegeMapping>::Get: Send,
pub fn get<H, T>(self, handler: H) -> Self
Sourcepub fn network_device_functions(
self,
network_device_functions: Router<S>,
) -> Self
pub fn network_device_functions( self, network_device_functions: Router<S>, ) -> Self
Serves an instance of a NetworkDeviceFunctionCollection.
Sourcepub fn network_ports(self, network_ports: Router<S>) -> Self
pub fn network_ports(self, network_ports: Router<S>) -> Self
Serves an instance of a NetworkPortCollection.
Sourcepub fn ports(self, ports: Router<S>) -> Self
pub fn ports(self, ports: Router<S>) -> Self
Serves an instance of a PortCollection.
pub fn into_router(self) -> Router<S>
Trait Implementations§
Source§impl<S> Default for NetworkInterface<S, DefaultPrivileges>where
S: Clone,
impl<S> Default for NetworkInterface<S, DefaultPrivileges>where
S: Clone,
Auto Trait Implementations§
impl<S, P> Freeze for NetworkInterface<S, P>
impl<S, P> !RefUnwindSafe for NetworkInterface<S, P>
impl<S, P> Send for NetworkInterface<S, P>
impl<S, P> !Sync for NetworkInterface<S, P>
impl<S, P> Unpin for NetworkInterface<S, P>
impl<S, P> !UnwindSafe for NetworkInterface<S, P>
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