pub struct SubgraphTask { /* private fields */ }Expand description
Implementations§
Source§impl SubgraphTask
impl SubgraphTask
Sourcepub fn new(id: impl Into<String>, graph: Arc<Graph>) -> Self
pub fn new(id: impl Into<String>, graph: Arc<Graph>) -> Self
Wrap graph as a task with the given id, using in-memory session storage.
Sourcepub fn with_storage(self, storage: Arc<dyn SessionStorage>) -> Self
pub fn with_storage(self, storage: Arc<dyn SessionStorage>) -> Self
Use a custom SessionStorage backend for the inner graph’s sessions.
Trait Implementations§
Source§impl Task for SubgraphTask
impl Task for SubgraphTask
Auto Trait Implementations§
impl !RefUnwindSafe for SubgraphTask
impl !UnwindSafe for SubgraphTask
impl Freeze for SubgraphTask
impl Send for SubgraphTask
impl Sync for SubgraphTask
impl Unpin for SubgraphTask
impl UnsafeUnpin for SubgraphTask
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