pub struct Controller {
pub snapshot: Snapshot,
/* private fields */
}Fields§
§snapshot: SnapshotImplementations§
Source§impl Controller
impl Controller
pub fn clear(&mut self)
pub fn retry(&mut self)
pub fn cancel(&mut self)
pub fn quiescent(&self) -> bool
pub fn poll_retiring(&mut self)
pub fn active(&self) -> bool
pub fn enabled(&mut self, enabled: bool)
pub fn update_episode( &mut self, config: &Config, generation: u64, episode: &Episode, playing: bool, )
pub fn update( &mut self, config: &Config, key: (u64, &str), playing: bool, paused: bool, local: bool, stop: &Arc<AtomicBool>, )
Trait Implementations§
Auto Trait Implementations§
impl !Sync for Controller
impl Forget for Controller
impl Freeze for Controllerwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const ArcInner<VecDeque<Segment>> is !null: Freeze,
PhantomData<ArcInner<VecDeque<Segment>>>: Freeze,
PhantomData<usize>: Freeze,
*const ArcInner<Atomic<bool>> is !null: Freeze,
PhantomData<ArcInner<Atomic<bool>>>: Freeze,
*mut Counter<Channel<Result<bool, Error>>>: Freeze,
*mut Counter<Channel<Result<bool, Error>>>: Freeze,
*mut Counter<Channel<Result<bool, Error>>>: Freeze,
*mut Counter<Channel<Notice>>: Freeze,
*mut Counter<Channel<Notice>>: Freeze,
*mut Counter<Channel<Notice>>: Freeze,
*mut Counter<Channel<Result<Option<Vec<Segment>>, Error>>>: Freeze,
*mut Counter<Channel<Result<Option<Vec<Segment>>, Error>>>: Freeze,
*mut Counter<Channel<Result<Option<Vec<Segment>>, Error>>>: Freeze,
PhantomData<Background<bool>>: Freeze,
*const ArcInner<Mutex<VerificationCache>> is !null: Freeze,
PhantomData<ArcInner<Mutex<VerificationCache>>>: Freeze,
PhantomData<u64>: Freeze,
impl Move for Controller
impl RefUnwindSafe for Controllerwhere
Atomic<usize>: RefUnwindSafe,
Atomic<bool>: RefUnwindSafe,
Receiver<Result<bool, Error>>: RefUnwindSafe,
Receiver<Notice>: RefUnwindSafe,
Receiver<Result<Option<Vec<Segment>>, Error>>: RefUnwindSafe,
Mutex<VerificationCache>: RefUnwindSafe,
impl Send for Controller
impl Unpin for Controllerwhere
*const u8 is !null: Unpin,
Arc<VecDeque<Segment>>: Unpin,
Arc<Atomic<bool>>: Unpin,
*mut Counter<Channel<Result<bool, Error>>>: Unpin,
*mut Counter<Channel<Result<bool, Error>>>: Unpin,
*mut Counter<Channel<Result<bool, Error>>>: Unpin,
*mut Counter<Channel<Notice>>: Unpin,
*mut Counter<Channel<Notice>>: Unpin,
*mut Counter<Channel<Notice>>: Unpin,
*mut Counter<Channel<Result<Option<Vec<Segment>>, Error>>>: Unpin,
*mut Counter<Channel<Result<Option<Vec<Segment>>, Error>>>: Unpin,
*mut Counter<Channel<Result<Option<Vec<Segment>>, Error>>>: Unpin,
Arc<Mutex<VerificationCache>>: Unpin,
*const ArcInner<VecDeque<Segment>> is !null: Unpin,
impl UnsafeUnpin for Controllerwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<VecDeque<Segment>> is !null: UnsafeUnpin,
PhantomData<ArcInner<VecDeque<Segment>>>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
*const ArcInner<Atomic<bool>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Atomic<bool>>>: UnsafeUnpin,
*mut Counter<Channel<Result<bool, Error>>>: UnsafeUnpin,
*mut Counter<Channel<Result<bool, Error>>>: UnsafeUnpin,
*mut Counter<Channel<Result<bool, Error>>>: UnsafeUnpin,
*mut Counter<Channel<Notice>>: UnsafeUnpin,
*mut Counter<Channel<Notice>>: UnsafeUnpin,
*mut Counter<Channel<Notice>>: UnsafeUnpin,
*mut Counter<Channel<Result<Option<Vec<Segment>>, Error>>>: UnsafeUnpin,
*mut Counter<Channel<Result<Option<Vec<Segment>>, Error>>>: UnsafeUnpin,
*mut Counter<Channel<Result<Option<Vec<Segment>>, Error>>>: UnsafeUnpin,
PhantomData<Background<bool>>: UnsafeUnpin,
*const ArcInner<Mutex<VerificationCache>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<VerificationCache>>>: UnsafeUnpin,
PhantomData<u64>: UnsafeUnpin,
impl UnwindSafe for Controllerwhere
RawVecInner: UnwindSafe,
Arc<VecDeque<Segment>>: UnwindSafe,
Arc<Atomic<bool>>: UnwindSafe,
Receiver<Result<bool, Error>>: UnwindSafe,
Receiver<Notice>: UnwindSafe,
Receiver<Result<Option<Vec<Segment>>, Error>>: UnwindSafe,
Arc<Mutex<VerificationCache>>: UnwindSafe,
NonNull<ArcInner<VecDeque<Segment>>>: 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more