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