pub struct TreeUseCases<'a, P: ?Sized> { /* private fields */ }Implementations§
Source§impl<'a, P: RuntimeTreePort + ?Sized> TreeUseCases<'a, P>
impl<'a, P: RuntimeTreePort + ?Sized> TreeUseCases<'a, P>
pub fn new(runtime: &'a P) -> Self
pub fn create_tree( &self, input: CreateTreeInput, ) -> RedDBResult<RuntimeQueryResult>
pub fn drop_tree(&self, input: DropTreeInput) -> RedDBResult<RuntimeQueryResult>
pub fn insert_node( &self, input: InsertTreeNodeInput, ) -> RedDBResult<RuntimeQueryResult>
pub fn move_node( &self, input: MoveTreeNodeInput, ) -> RedDBResult<RuntimeQueryResult>
pub fn delete_node( &self, input: DeleteTreeNodeInput, ) -> RedDBResult<RuntimeQueryResult>
pub fn validate( &self, input: ValidateTreeInput, ) -> RedDBResult<RuntimeQueryResult>
pub fn rebalance( &self, input: RebalanceTreeInput, ) -> RedDBResult<RuntimeQueryResult>
Auto Trait Implementations§
impl<'a, P> Freeze for TreeUseCases<'a, P>where
P: ?Sized,
impl<'a, P> RefUnwindSafe for TreeUseCases<'a, P>where
P: RefUnwindSafe + ?Sized,
impl<'a, P> Send for TreeUseCases<'a, P>
impl<'a, P> Sync for TreeUseCases<'a, P>
impl<'a, P> Unpin for TreeUseCases<'a, P>where
P: ?Sized,
impl<'a, P> UnsafeUnpin for TreeUseCases<'a, P>where
P: ?Sized,
impl<'a, P> UnwindSafe for TreeUseCases<'a, P>where
P: RefUnwindSafe + ?Sized,
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
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request