pub struct LanPlacementRequest { /* private fields */ }Expand description
Request to place a stream fragment on a LAN peer under a chosen mode.
Implementations§
Source§impl LanPlacementRequest
impl LanPlacementRequest
Sourcepub fn new(fragment: PlacedFragment, mode: LanPlacementMode) -> Self
pub fn new(fragment: PlacedFragment, mode: LanPlacementMode) -> Self
Builds a request to place fragment using mode, unpinned and with no
extra capabilities.
Sourcepub fn with_realtime_pin(self, realtime_pinned: bool) -> Self
pub fn with_realtime_pin(self, realtime_pinned: bool) -> Self
Marks whether the fragment is pinned to realtime (sample-locked) play.
Sourcepub fn with_capability(self, capability: CapabilityName) -> Self
pub fn with_capability(self, capability: CapabilityName) -> Self
Grants an additional capability to the request.
Sourcepub fn plan(&self) -> Result<LanPlacementReport>
pub fn plan(&self) -> Result<LanPlacementReport>
Plans the placement, returning a report or an evaluation error.
Refuses a realtime-pinned sample-domain fragment across the LAN unless the experimental remote-sample capability is granted, in which case it proceeds and records an experimental diagnostic.
Trait Implementations§
Source§impl Clone for LanPlacementRequest
impl Clone for LanPlacementRequest
Source§fn clone(&self) -> LanPlacementRequest
fn clone(&self) -> LanPlacementRequest
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 moreSource§impl Debug for LanPlacementRequest
impl Debug for LanPlacementRequest
impl Eq for LanPlacementRequest
Source§impl PartialEq for LanPlacementRequest
impl PartialEq for LanPlacementRequest
Source§fn eq(&self, other: &LanPlacementRequest) -> bool
fn eq(&self, other: &LanPlacementRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LanPlacementRequest
Auto Trait Implementations§
impl Freeze for LanPlacementRequest
impl RefUnwindSafe for LanPlacementRequest
impl Send for LanPlacementRequest
impl Sync for LanPlacementRequest
impl Unpin for LanPlacementRequest
impl UnsafeUnpin for LanPlacementRequest
impl UnwindSafe for LanPlacementRequest
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