Struct tarantool::net_box::RemoteSpace
source · pub struct RemoteSpace { /* private fields */ }
Expand description
Remote space
Implementations§
source§impl RemoteSpace
impl RemoteSpace
sourcepub fn index(&self, name: &str) -> Result<Option<RemoteIndex>, Error>
pub fn index(&self, name: &str) -> Result<Option<RemoteIndex>, Error>
Find index by name (on remote space)
sourcepub fn primary_key(&self) -> RemoteIndex
pub fn primary_key(&self) -> RemoteIndex
Returns index with id = 0
sourcepub fn get<K>(&self, key: &K, options: &Options) -> Result<Option<Tuple>, Error>where
K: ToTupleBuffer + ?Sized,
pub fn get<K>(&self, key: &K, options: &Options) -> Result<Option<Tuple>, Error>where
K: ToTupleBuffer + ?Sized,
The remote-call equivalent of the local call Space::get(...)
(see details).
sourcepub fn select<K>(
&self,
iterator_type: IteratorType,
key: &K,
options: &Options
) -> Result<RemoteIndexIterator, Error>where
K: ToTupleBuffer + ?Sized,
pub fn select<K>(
&self,
iterator_type: IteratorType,
key: &K,
options: &Options
) -> Result<RemoteIndexIterator, Error>where
K: ToTupleBuffer + ?Sized,
The remote-call equivalent of the local call Space::select(...)
(see details).
sourcepub fn insert<T>(
&self,
value: &T,
options: &Options
) -> Result<Option<Tuple>, Error>where
T: ToTupleBuffer + ?Sized,
pub fn insert<T>(
&self,
value: &T,
options: &Options
) -> Result<Option<Tuple>, Error>where
T: ToTupleBuffer + ?Sized,
The remote-call equivalent of the local call Space::insert(...)
(see details).
sourcepub fn replace<T>(
&self,
value: &T,
options: &Options
) -> Result<Option<Tuple>, Error>where
T: ToTupleBuffer + ?Sized,
pub fn replace<T>(
&self,
value: &T,
options: &Options
) -> Result<Option<Tuple>, Error>where
T: ToTupleBuffer + ?Sized,
The remote-call equivalent of the local call Space::replace(...)
(see details).
sourcepub fn update<K, Op>(
&self,
key: &K,
ops: &[Op],
options: &Options
) -> Result<Option<Tuple>, Error>
pub fn update<K, Op>( &self, key: &K, ops: &[Op], options: &Options ) -> Result<Option<Tuple>, Error>
The remote-call equivalent of the local call Space::update(...)
(see details).
Auto Trait Implementations§
impl !RefUnwindSafe for RemoteSpace
impl !Send for RemoteSpace
impl !Sync for RemoteSpace
impl Unpin for RemoteSpace
impl !UnwindSafe for RemoteSpace
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