pub enum StreamSecurityCapability {
Open,
Read,
Push,
Cancel,
Stats,
RemotePreview,
RemoteRender,
LanMidi,
HostDevice,
RemoteNetwork,
}Expand description
Concrete capability a stream may exercise, gated against the kernel capability contract.
Each variant names one stream operation or remote surface; the runtime
checks the corresponding CapabilityName before allowing the action.
Variants§
Open
Open a stream.
Read
Read frames from a stream.
Push
Push frames into a stream.
Cancel
Cancel an active stream.
Stats
Read stream statistics.
RemotePreview
Preview a stream across a remote boundary.
RemoteRender
Render a stream across a remote boundary.
LanMidi
Access LAN MIDI transport.
HostDevice
Access a host audio/MIDI device.
RemoteNetwork
Cross a remote network boundary.
Implementations§
Source§impl StreamSecurityCapability
impl StreamSecurityCapability
Sourcepub fn wire_label(self) -> &'static str
pub fn wire_label(self) -> &'static str
Returns the stable dotted wire label for this capability (for example
stream.open).
Sourcepub fn capability(self) -> CapabilityName
pub fn capability(self) -> CapabilityName
Returns the kernel CapabilityName this capability checks against.
Trait Implementations§
Source§impl Clone for StreamSecurityCapability
impl Clone for StreamSecurityCapability
Source§fn clone(&self) -> StreamSecurityCapability
fn clone(&self) -> StreamSecurityCapability
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 StreamSecurityCapability
Source§impl Debug for StreamSecurityCapability
impl Debug for StreamSecurityCapability
impl Eq for StreamSecurityCapability
Source§impl PartialEq for StreamSecurityCapability
impl PartialEq for StreamSecurityCapability
Source§fn eq(&self, other: &StreamSecurityCapability) -> bool
fn eq(&self, other: &StreamSecurityCapability) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StreamSecurityCapability
Auto Trait Implementations§
impl Freeze for StreamSecurityCapability
impl RefUnwindSafe for StreamSecurityCapability
impl Send for StreamSecurityCapability
impl Sync for StreamSecurityCapability
impl Unpin for StreamSecurityCapability
impl UnsafeUnpin for StreamSecurityCapability
impl UnwindSafe for StreamSecurityCapability
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