pub struct Endpoint<Id, Name> {
pub id: Id,
pub name: Name,
pub direction: Direction,
pub channels: u16,
pub rate: (u32, u32),
}Expand description
An enumerated physical endpoint. Names are for display. Select by identity.
Fields§
§id: IdBackend identity of this device instance.
name: NameDisplay name, possibly shared with another device.
direction: DirectionSignal flow.
channels: u16Channels exposed by the backend.
rate: (u32, u32)Backend-reported frame rate in frames per second, numerator and denominator.
Trait Implementations§
impl<Id: Copy, Name: Copy> Copy for Endpoint<Id, Name>
impl<Id: Eq, Name: Eq> Eq for Endpoint<Id, Name>
impl<Id: PartialEq, Name: PartialEq> StructuralPartialEq for Endpoint<Id, Name>
Auto Trait Implementations§
impl<Id, Name> Forget for Endpoint<Id, Name>
impl<Id, Name> Freeze for Endpoint<Id, Name>
impl<Id, Name> Move for Endpoint<Id, Name>
impl<Id, Name> RefUnwindSafe for Endpoint<Id, Name>where
Id: RefUnwindSafe,
Name: RefUnwindSafe,
impl<Id, Name> Send for Endpoint<Id, Name>
impl<Id, Name> Sync for Endpoint<Id, Name>
impl<Id, Name> Unpin for Endpoint<Id, Name>
impl<Id, Name> UnsafeUnpin for Endpoint<Id, Name>where
Id: UnsafeUnpin,
Name: UnsafeUnpin,
impl<Id, Name> UnwindSafe for Endpoint<Id, Name>where
Id: UnwindSafe,
Name: UnwindSafe,
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